package com.ruoyi.material.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 vims_task
 * 
 * @author ruoyi
 * @date 2021-07-29
 */
@Data
public class VimsTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String schedulename;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startdate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enddate;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 运行频率 */
    @Excel(name = "运行频率")
    private Long rate;

    /** 频率单位 */
    @Excel(name = "频率单位")
    private Long rateunit;

    /** 任务id */
    @Excel(name = "任务id")
    private Long scheduleid;



    private String  token ;

    private String status;


    public void setSchedulename(String schedulename) 
    {
        this.schedulename = schedulename;
    }

    public String getSchedulename() 
    {
        return schedulename;
    }
    public void setStartdate(Date startdate) 
    {
        this.startdate = startdate;
    }

    public Date getStartdate() 
    {
        return startdate;
    }
    public void setEnddate(Date enddate) 
    {
        this.enddate = enddate;
    }

    public Date getEnddate() 
    {
        return enddate;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setRate(Long rate) 
    {
        this.rate = rate;
    }

    public Long getRate() 
    {
        return rate;
    }
    public void setRateunit(Long rateunit) 
    {
        this.rateunit = rateunit;
    }

    public Long getRateunit() 
    {
        return rateunit;
    }
    public void setScheduleid(Long scheduleid) 
    {
        this.scheduleid = scheduleid;
    }

    public Long getScheduleid() 
    {
        return scheduleid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("schedulename", getSchedulename())
            .append("startdate", getStartdate())
            .append("enddate", getEnddate())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("rate", getRate())
            .append("rateunit", getRateunit())
            .append("scheduleid", getScheduleid())
            .toString();
    }
}
